﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="title" ContentPlaceHolderID="TitleContent" runat="server">
    Cambio Password
</asp:Content>

<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Cambio Password</h2>
    <p>
        Usa il modulo seguente per cambiare la password. 
    </p>
    <p>
        Le nuove password devono essere lunghe almeno <%:ViewData["PasswordLength"]%> caratteri.
    </p>
    <%: Html.ValidationSummary() %>

    <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend>Informazioni Account</legend>
                <p>
                    <label for="currentPassword">Password corrente:</label>
                    <%: Html.Password("currentPassword") %>
                    <%: Html.ValidationMessage("currentPassword") %>
                </p>
                <p>
                    <label for="newPassword">Nuova password:</label>
                    <%: Html.Password("newPassword") %>
                    <%: Html.ValidationMessage("newPassword") %>
                </p>
                <p>
                    <label for="confirmPassword">Conferma nuova password:</label>
                    <%: Html.Password("confirmPassword") %>
                    <%: Html.ValidationMessage("confirmPassword") %>
                </p>
                <p>
                    <input type="submit" value="Cambia Password" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
